<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<!-- action指向的地址是 用户的执行修改操作方法 -->
	<form action="<?php echo U('User/update');?>" method="post">
		<input type="hidden" name="id" value="<?php echo ($data['id']); ?>">
		<table width="500" border="1">
			<tr>
				<th>姓名</th>
				<th><input type="text" name="username" value="<?php echo ($data['username']); ?>"></th>
			</tr>
			<tr>
				<th>年龄</th>
				<th><input type="text" name="age" value="<?php echo ($data['age']); ?>"></th>
			</tr>
			<tr>
				<th>性别</th>
				<th>
					<input type="radio" name="sex" value="1" <?php echo ($data['sex']==1 ? 'checked' : ''); ?>>男
					<input type="radio" name="sex" value="2" <?php echo ($data['sex']==2 ? 'checked' : ''); ?>>女
				</th>
			</tr>
			<tr>
				<th>班期</th>
				<th><input type="text" name="classid" value="<?php echo ($data['classid']); ?>"></th>
			</tr>
			<tr>
				<th colspan="2"><input type="submit" value="提交"></th>
			</tr>
		</table>
	</form>
</body>
</html>